package com.cndw.kungfu.vo.battlevo;

import com.cndw.kungfu.model.battle.FailGoods;
import com.cndw.kungfu.vo.goodsvo.GoodsVO;

/**
 * 掉落物品的vo
 * @author fantadust [9677889@qq.com]
 * @date 2011-7-13 下午5:40:35
 */
public class AFailGoodsVO {
	/**
	 * 物品索引id
	 */
	private int indexId;
	/**
	 * 所属玩家id
	 */
	private long playerId;
	/**
	 * 怪物id
	 */
	private long mId;
	/**
	 * 物品vo
	 */
	private GoodsVO goodsVO;
	public AFailGoodsVO(){
		
	}

	public AFailGoodsVO(FailGoods failGoods) {
		indexId = failGoods.getIndexId();
		playerId = failGoods.getPlayerId();
		mId = failGoods.getmId();
		goodsVO = new GoodsVO(failGoods.getGoodsId(), 0, 0);
		goodsVO.setStackNum(1);	
		goodsVO.setBinding(failGoods.getBind());
		
	}
	public int getIndexId() {
		return indexId;
	}
	public void setIndexId(int indexId) {
		this.indexId = indexId;
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public long getmId() {
		return mId;
	}
	public void setmId(long mId) {
		this.mId = mId;
	}
	public GoodsVO getGoodsVO() {
		return goodsVO;
	}
	public void setGoodsVO(GoodsVO goodsVO) {
		this.goodsVO = goodsVO;
	}
	
	
	
}
